﻿@model LynxWiki.ViewModels.WikiDirectoryViewData

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>WikiDirectoryViewData</legend>

            @Html.LabelFor(model => model.RootDirectory)
            @Html.EditorFor(model => model.RootDirectory)
            @Html.ValidationMessageFor(model => model.RootDirectory)<br />
            @Html.LabelFor(model => model.ParentPath)
            @Html.EditorFor(model => model.ParentPath)
            @Html.ValidationMessageFor(model => model.ParentPath)<br />
            @Html.LabelFor(model => model.DirectoryName)
            @Html.EditorFor(model => model.DirectoryName)
            @Html.ValidationMessageFor(model => model.DirectoryName)<br />
            @Html.LabelFor(model => model.CreatedOn)
            @Html.EditorFor(model => model.CreatedOn)
            @Html.ValidationMessageFor(model => model.CreatedOn)<br />
            @Html.LabelFor(model => model.Creator)
            @Html.EditorFor(model => model.Creator)
            @Html.ValidationMessageFor(model => model.Creator)<br />
            @Html.LabelFor(model => model.cntWikiDirs)
            @Html.EditorFor(model => model.cntWikiDirs)
            @Html.ValidationMessageFor(model => model.cntWikiDirs)<br />
            @Html.LabelFor(model => model.cntTopicNames)
            @Html.EditorFor(model => model.cntTopicNames)
            @Html.ValidationMessageFor(model => model.cntTopicNames)
        
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", new { fullPath = ViewBag.CurrentDir })
</div>

@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
